package com.main.usermanagement.domain.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.main.common.base.base.entity.BaseEntity;
import com.main.usermanagement.domain.user.valueobject.OrganizationAtomicId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.autoconfigure.domain.EntityScan;

/**
 * @author Lin 2025/03/12
 * @version 1.0.0
 * 用户身份实体
 */
@TableName("user_identities")
@EqualsAndHashCode(callSuper = true)
@Data
@EntityScan
public class UserIdentity extends BaseEntity {
    @TableField(value = "user_id")
    private Long userId;
    @TableId(value = "user_group_id")
    private Long userGroupId;
    @TableField(value = "name")
    private OrganizationAtomicId organizationAtomicId;

    private UserGroup userGroup;
}
